package com.cb.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cb.wxy.pojo.CouoponsUser;
import com.cb.service.CouoponsUserService;
import com.cb.mapper.CouoponsUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 卫相阳
* @description 针对表【t_couopons_user】的数据库操作Service实现
* @createDate 2024-04-29 15:43:13
*/
@Service
public class CouoponsUserServiceImpl extends ServiceImpl<CouoponsUserMapper, CouoponsUser>
    implements CouoponsUserService{

    @Autowired
    private CouoponsUserMapper couoponsUserMapper;
    @Override
    public List<CouoponsUser> getUidCid(Integer id) {
        return this.couoponsUserMapper.getUidCid(id);
    }

    @Override
    public int addMyinte(Integer cid, Integer uid) {
        return this.couoponsUserMapper.addMyinte(cid,uid);
    }

    @Override
    public Integer getUidCidByid(Integer id, Integer cid) {
        return this.couoponsUserMapper.getUidCidByid(id,cid);
    }
}




